@import "color";

* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

input,
textarea,
button {
  outline: none;
}

input {
  line-height: normal;
  font-family: DINOT, "PingFang SC Regular", Helvetica, "Droid Sans", Arial,
  sans-serif;
  caret-color: rgb(93, 190, 119);
}

select,
button {
  appearance: none;
}

button::after {
  border: none;
}

.pointer {
  cursor: pointer;
}

input {
  border: 1px solid $border;
}

button {
  border: 1px solid $border;
}

.placeholder {
  /* WebKit browsers */
  color: $textRegular;
  font-weight: 400;
}

.scrollBox {
  overflow-y: auto;
  overflow-x: hidden;
}

.scrollBoxX {
  overflow-y: hidden;
  overflow-x: auto;
}

.scrollDialog {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

//水平
.flex {
  display: flex;
  flex-direction: row;
}

.flexWrap {
  flex-wrap: wrap;
}

//垂直
.flexColumn {
  display: flex;
  flex-direction: column;
}

//主轴剧中对齐方式
.fJustifyCenter {
  justify-content: center;
}

//主轴两端对齐
.fJustifyBetween {
  justify-content: space-between;
}

.fJustifyAround {
  justify-content: space-around;
}

.fJustifyStart {
  justify-content: flex-start;
}

.fJustifyEnd {
  justify-content: flex-end;
}

//交叉轴居中对齐
.fAlignCenter {
  align-items: center;
}

//交叉轴两端对齐
.fAlignStretch {
  align-items: stretch;
}

//交叉轴两端对齐
.fAlignStart {
  align-items: flex-start;
}

//交叉轴两端对齐
.fAlignEnd {
  align-items: flex-end;
}

//放大比例
.fGrow {
  flex-grow: 1;
}

//缩小比例
.fShrink {
  flex-shrink: 1;
}

.fFlex {
  flex-grow: 1;
}

.flex1 {
  flex: 1;
}

.flexAuto {
  flex: 1 1 auto;
}

.flexNone {
  flex: none;
}

.b1 {
  border: 0.5px solid $border !important;
}

.bb1 {
  border-bottom: 0.5px solid var(--border-color);
}

.bt1 {
  border-top: 0.5px solid var(--border-color);
}

.bl1 {
  border-left: 0.5px solid var(--border-color);
}

.br1 {
  border-right: 0.5px solid var(--border-color);
}

.borderBottom {
  position: relative;
}

.borderBottom:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
  height: 1px;
  background: #ededed;
  transform: scaleY(0.5);
}

.bc {
  display: flex;
  align-items: center;
  margin: 16px 0;
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
  text-align: center;
  &:before {
    position: relative;
    width: 50%;
    border-block-start: 1px solid transparent;
    border-block-start-color: $background;
    border-block-end: 0;
    transform: translateY(50%);
    content: "";
  }
  &:after {
    position: relative;
    width: 50%;
    border-block-start: 1px solid transparent;
    border-block-start-color: $background;
    border-block-end: 0;
    transform: translateY(50%);
    content: "";
  }
}
.tl {
  text-align: left;
}

.tc {
  text-align: center;
}

.tr {
  text-align: right;
}

.fw {
  font-weight: bold;
}

.none {
  display: none;
}

.plr {
  padding: 0 5px;
}

$margin: -80, -60, -40, -25, -20, -15, -10, 0, 10, 11, 12, 20, 22, 23, 25, 30,
35, 38, 40, 45, 50, 55, 60, 65, 70, 80, 90, 100, 150;
@for $i from 1 through length($margin) {
  $item: nth($margin, $i);
  .mt#{$item} {
    margin-top: #{$item}px !important;
  }
  .mr#{$item} {
    margin-right: #{$item}px !important;
  }
  .mb#{$item} {
    margin-bottom: #{$item}px !important;
  }
  .ml#{$item} {
    margin-left: #{$item}px !important;
  }
  .pt#{$item} {
    padding-top: #{$item}px !important;
  }
  .pr#{$item} {
    padding-right: #{$item}px !important;
  }
  .pb#{$item} {
    padding-bottom: #{$item}px !important;
  }
  .pl#{$item} {
    padding-left: #{$item}px !important;
  }
  .p#{$item} {
    padding: #{$item}px !important;
  }
}

$fontSize: 10, 11, 12, 13, 14, 16, 18, 20, 22, 24, 28, 30, 32;
@for $i from 1 through length($fontSize) {
  $item: nth($fontSize, $i);
  .f#{$item} {
    font-size: #{$item}px !important;
  }
}

.textPrimary {
  color: $textPrimary;
}

.textRegular {
  color: $textRegular !important;
}

.greenColor {
  color: $green;
}

.textLight {
  color: $textLight;
}

.textGrayRegular {
  color: $textRegular;
}

.textWhite {
  color: $white;
}

.textWarning {
  color: $warning;
}

.textBrown {
  color: $brown;
}

.textLightBrown {
  color: $lightBrown;
}

.textDanger {
  color: $danger;
}

.bgWhite {
  background: $white;
}

.bgBlack {
  background: $black !important;
}

.bgDefault {
  background: $background !important;
}

.bgGray {
  background: $gray;
}
.bgOrange {
  background: $warning;
}

a {
  text-decoration: none;
  color: inherit;
}

.hFull {
  height: 100%;
}

.overEllipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -o-text-overflow: ellipsis;
}

// 多行文本省略
.textMoreThanOverEllipsis {
  overflow: hidden; //溢出内容隐藏
  text-overflow: ellipsis; //文本溢出部分用省略号表示
  display: -webkit-box; //特别显示模式
  -webkit-line-clamp: 2; //行数
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

@keyframes rotateAni {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.buttonToDiv {
  background: none;
  border: none;
  border-radius: 0;
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1.43;
  text-align: left;
}

.borderRadius {
  border-radius: 12px;
}

.viewCenter {
  margin: 0 auto;
}

.mainWrapper {
  width: 345px;
  margin-right: auto;
  margin-left: auto;
}

.lineThrough {
  text-decoration: line-through;
}
